const DialogStore = {
  state: {
    serviceContractTitle: {
      title: "Edit Service Contract",
      icon: true,
    },
    itemList: {
      itemDate: [
        {
          item: "BM0001",
          itemDescription: "Painting",
          serialNumber: "0001 ab",
          alias: "",
          locationCode: "Office",
          qty: 1,
          cost: 50,
          dateExpire: "2022-09-06",
        },
        {
          item: "BM0002",
          itemDescription: "Painting",
          serialNumber: "0001 ab",
          alias: "",
          locationCode: "Office",
          qty: 1,
          cost: 50,
          dateExpire: "2022-09-06",
        },
      ],
    },
    addItemImages: [
      {
        id: 1,
        src: "https://images.pexels.com/photos/1591447/pexels-photo-1591447.jpeg?auto=compress&cs=tinysrgb&w=1600",
      },
      {
        id: 2,
        src: "https://images.pexels.com/photos/1366919/pexels-photo-1366919.jpeg?auto=compress&cs=tinysrgb&w=1600",
      },
      {
        id: 3,
        src: "https://images.pexels.com/photos/3052361/pexels-photo-3052361.jpeg?auto=compress&cs=tinysrgb&w=400",
      },
    ],
    disposeDetails: {
      reason: "please enter the reason",
      endDate: "2021-01-01",
    },
    settingList: {
      header: [
        { text: "Department", value: "department" },
        { text: "User Name", value: "userName" },
        { text: "All", value: "all" },
        { text: "Project Manager", value: "projectManager" },
        { text: "Read", value: "read" },
        { text: "Write", value: "write" },
        { text: "Delete", value: "delete" },
        { text: "Print", value: "print" },
        { text: "Export", value: "export" },
        { text: "Chat", value: "chat" },
        { text: "Library", value: "library" },
        { text: "Upload", value: "upload" },
        { text: "Delete Document", value: "deleteDocument" },
        { value: "action" },
      ],
      date: [
        {
          department: "CS",
          userName: true,
          all: true,
          projectManager: true,
          read: true,
          write: true,
          delete: true,
          print: true,
          export: true,
          chat: true,
          library: true,
          upload: true,
          deleteDocument: true,
        },
        {
          department: "CS1",
          userName: true,
          all: true,
          projectManager: true,
          read: true,
          write: true,
          delete: true,
          print: true,
          export: true,
          chat: true,
          library: true,
          upload: true,
          deleteDocument: true,
        },
      ],
    },
    userList: {
      header: [
        { text: "ID", value: "id" },
        { text: "User Name", value: "username" },
        { text: "Tel", value: "tel" },
        { text: "Email", value: "email" },
      ],
      date: [
        {
          id: "ADM",
          username: "Admin",
          tel: "3213",
          email: "1232",
        },
        {
          id: "CS",
          username: "Customer Service Team",
          tel: "",
          email: "",
        },
        {
          id: "FSE",
          username: "Field Service Engineer",
          tel: "",
          email: "",
        },
      ],
    },
    serviceContractList: {
      header: [
        { text: "Item", value: "item" },
        { text: "Item Description", value: "itemDescription" },
        { text: "Serial number", value: "serialNumber" },
        { text: "Alias", value: "alias" },
        { text: "Location code", value: "locationCode" },
        { text: "QTY", value: "qty" },
        { text: "Cost", value: "cost" },
        { text: "Date Expire", value: "dateExpire" },
        { value: "action" },
      ],
      date: [
        {
          item: "BM0001",
          itemDescription: "Painting",
          serialNumber: "0001 ab",
          alias: "",
          locationCode: "Office",
          qty: 1,
          cost: 50,
          dateExpire: "2022-09-06",
        },
        {
          item: "BM0002",
          itemDescription: "Painting",
          serialNumber: "0001 ab",
          alias: "",
          locationCode: "Office",
          qty: 1,
          cost: 50,
          dateExpire: "2022-09-06",
        },
      ],
    },
    addItemList: {
      header: [
        { text: "Item", value: "item" },
        { text: "Cate Code", value: "cateCode" },
        { text: "Item Description", value: "itemDescription" },
        { text: "Cost", value: "cost" },
        { text: "Date Expire", value: "dateExpire" },
      ],
      date: [
        {
          item: "BM0001",
          cateCode: "PT",
          itemDescription: "Painting",
          cost: "50.00",
          dateExpire: "2022-09-06",
        },
        {
          item: "BM0002",
          cateCode: "PT",
          itemDescription: "Painting",
          cost: "50.00",
          dateExpire: "2022-09-06",
        },
        {
          item: "BM0003",
          cateCode: "PT",
          itemDescription: "Painting",
          cost: "50.00",
          dateExpire: "2022-09-06",
        },
      ],
    },
  },
  mutations: {
    setItemList: (state: any, itemList: object) => {
      state.itemList = itemList;
    },
    setAddItemImages: (state: any, addItemImages: object) => {
      state.any = addItemImages;
    },
    setDisposeDetails: (state: any, disposeDetails: object) => {
      state.disposeDetails = disposeDetails;
    },
    setSettingList: (state: any, settingList: object) => {
      state.settingList = settingList;
    },
    setUserList: (state: any, userList: object) => {
      state.userList = userList;
    },
    setServiceContractList: (state: any, serviceContractList: object) => {
      state.serviceContractList = serviceContractList;
    },
    setAddItemList: (state: any, addItemList: object) => {
      state.addItemList = addItemList;
    },
    setServiceContract: (state: any, serviceContractTitle: object) => {
      state.serviceContractTitle = serviceContractTitle;
    },
  },
};

export { DialogStore };
